[BLOCK] blkback: Fix potential grant entry leaks on error
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 25 Oct 2006 09:59:00 +0000 (10:59 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 25 Oct 2006 09:59:00 +0000 (10:59 +0100)
commit94e4fb8a1d430fec021c1981f9fd25df6d0246a1
treeea057d3f601eeeaf1001cdd1964304a7e19e50bb
parent9f29e9da0994d4ce96a1c4c8c086aaaf405899ed
[BLOCK] blkback: Fix potential grant entry leaks on error

As it stands grant entries for the actual data are mapped in bulk.
If one of the earlier entries fail to be mapped, it can cause all
subsequent entries to be leaked if they were successfully mapped.

This patch changes it so that we will continue to reap grant entries
even when an error is detected.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
linux-2.6-xen-sparse/drivers/xen/blkback/blkback.c